﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommandPattern.GeneralDemo
{
    public  class Invoker
    {
        private Command _command;

        public Command command
        {
            set { _command = value; }
        }

        public void action()
        {
            this._command.execute();
        }
    }
}
